﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;
using System.Globalization;

namespace Medianamik.Core
{
    /// <summary>
    /// Représente un item pour une relation OneToMany ou ManyToMany
    /// Sert à la création des controles (CheckBoxList, DropDownList...)
    /// </summary>
    //public class RelationOption
    //{
    //    public RelationOption(Guid pNodeId, Guid? pParentNodeId)
    //    {
    //        NodeId = pNodeId;
    //        ParentNodeId = pParentNodeId;
    //        Text = pText;
    //        RequestedCultureName = pRequestedCultureName;
    //        ActualCultureName = pActualCultureName;
    //    }
    //    public Guid? ParentNodeId { get; private set; }
    //    public Guid NodeId { get; private set; }
    //    public string RequestedCultureName { get; private set; }
    //    public string Text { get; private set; }
    //    public string ActualCultureName { get; private set; }
    //    public bool IsRequestedCultureName
    //    {
    //        get
    //        {
    //            return ActualCultureName == RequestedCultureName
    //                || ActualCultureName == CultureInfo.InvariantCulture.Name;
    //        }
    //    }
    //    public override string ToString()
    //    {
    //        if (IsRequestedCultureName)
    //        {
    //            return Text;
    //        }
    //        else
    //        {
    //            return "[ " + Text + " ]";
    //        }
    //    }
    //}

    


}
